<div class="date_cal"> 
    <div class="date"><txp:posted format="%d"/></div> 
    <div class="month"><txp:posted format="%b" /></div>
    <div class="year"><txp:posted format="%Y" /></div>
</div> <!--date_calc-->
<h2 class="single"><txp:if_article_section name="sidebar">
<a href="<txp:custom_field name="link"/>" title="<txp:title/>"><txp:title/></a> 
<txp:else/><txp:title/></txp:if_article_section></h2> 
<div class="postinfo">Posted by <txp:author/> <a href="<txp:permlink />#comment"><txp:comments_count /> Comments &#187;</a> <txp:if_comments_allowed><a href="<txp:permlink />#comment">(add your own)</a></txp:if_comments_allowed>
</div><!--postinfo--><txp:if_article_category name="code">
<txp:else/>
<txp:if_article_section name="kids">
<txp:else/>
<txp:excerpt/>
</txp:if_article_section>
<txp:smd_gallery thumblimit="1"
     id="?article_image" >
<txp:variable name="iwidth" value="{width}"/><p><a href="<txp:if_article_section name="sidebar"><txp:custom_field name="link"/><txp:else/>
<txp:permlink/></txp:if_article_section>"><img class="frameleft2"
src="{url}" alt="{alt}" /></a></p></txp:smd_gallery>

<txp:smd_switch item="?iwidth">
<txp:smd_case value="580" type="lt"
        numeric="1" look_in="txp_var">
<div style="clear:both;"></div><!--image is less than 580--></txp:smd_case>
</txp:smd_switch>


 
</txp:if_article_category><txp:body/><txp:if_custom_field name="lat"><txp:if_custom_field name="long">
<txp:output_form form="map"/></txp:if_custom_field></txp:if_custom_field><txp:hide><p><a href="<txp:site_url/>"><txp:author/></a></p> </txp:hide>
 
<div class="postfooter"> 
<txp:if_custom_field name="age"> 
<div class="postDetails">
<txp:variable name="ifcat2" value='<txp:category2/>'/>
<txp:category1 link="1" title="1" /><txp:if_variable name="ifcat2" value="">, age<txp:else/> and <txp:category2 link="1" title="1" />, ages </txp:if_variable> <txp:custom_field name="age"/>
</div>
</txp:if_custom_field> 
<txp:output_form form="related_posts"/>

</div><!--postfooter-->
<div class="comments-template"> 
<a name="comment"></a> 
<txp:if_comments_allowed>
<h3><a href="<txp:permlink/>#writecomment">jump to the comment form &darr;</a></h3></txp:if_comments_allowed>
<txp:comments wraptag="ul" break="li" breakclass="alt" class="comment_list"/>
<txp:comments_form wraptag=""/>
</div><!--comments-template-->